/*
 *  main.c
 *  xD-OS
 *
 *  Created by James Johns on 21/07/2009.
 *  Copyright 2009 xD-Dunce. All rights reserved.
 *
 */

#include "global.h"
#include "textscreen.h"
#include "GDT.h"
#include "IDT.h"

void *pit();

int _main(){
	initScreen();
	initGDT();
	initIDT();
	
	
	printString("hello world!\n");
	printHex(0xDEADBEEF);
	newLine();
	printHex((dWord)&end);
	
	addServiceRoutine(32, pit);
	
	asm volatile("sti");

	//asm volatile("int $0x3");
	
	for(;;);
	return 0xdeadbeef;
}

void *pit(){
	newLine();
	printString("PIT Tick");
}
